package routers

import (
	"Department/controllers"
	beego "github.com/beego/beego/v2/server/web"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/login", &controllers.UserController{}, "Post:Login")
	beego.Router("/show", &controllers.DepartController{}, "get:Show")
	beego.Router("/Update", &controllers.DepartController{}, "post:Update")
	beego.Router("/del", &controllers.DepartController{}, "post:Del")

}
